import os
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
# 1.实例化配置类
options = webdriver.ChromeOptions()
# 2.准备配置项
user_data_dir = r'--user-data-dir=C:\Users\Administrator\AppData\Local\Google\Chrome\User Data'
# 3. 添加配置
options.add_argument(user_data_dir)
# 加载页面配置并打开163网页
driver = webdriver.Chrome(options=options)
driver.get("https://mail.163.com")

time.sleep(5)
driver.quit()
